Skip to content

Comments

Support newer libclang library versions#8

Open
davispuh wants to merge 1 commit intoMVV90:mainfrom
davispuh:clang
Open

Support newer libclang library versions#8
davispuh wants to merge 1 commit intoMVV90:mainfrom
davispuh:clang

Conversation

@davispuh
Copy link

@davispuh davispuh commented Feb 2, 2026

Support newer libclang library versions.
Currently libclang v15 is hardcoded so this won't work for any other libclang version.
But actually libclang is backwards compatible so ruby_ffi_generator works fine even with newer libclang versions.
I have libclang v21.1.6 installed and it works fine without any issues. No code changes needed.
This is benefit of using FFI interface because C ABI is very stable (unlike C++ ABI).

Copilot AI review requested due to automatic review settings February 2, 2026 13:01
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR relaxes the hardcoded libclang dependency to support environments where the library is exposed under the generic name clang, which better accommodates newer libclang versions and packaging differences.

Changes:

  • Update the FFI binding for FFIGenerate::Clang::C to load either clang-15 or the generic clang library name, trying clang-15 first for backwards compatibility.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant